import requests


class IhrmLoginApi(object):
    @classmethod
    def login(cls, json_data):
        url = "https://reqres.in/api/user"
        # header = {"Content_type":"application/json"}
        res = requests.post(url=url, json=json_data)
        return res


if __name__ == '__main__':
    data = {"name": "lukas", "job": "leader"}
    resp = IhrmLoginApi.login(data)
    print(resp.json())
